home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
drdobbs
/
1987
/
11
/
holub.exp
< prev
next >
Wrap
Text File
|
1987-10-08
|
2KB
|
42 lines
#define _DAY_ "6-17-87"
#define _TIME_24_ "13:11:41"
#define _TIME_ "1:11 PM"
#define _DATE_ "6-17-87 1:11 PM"
«MDUL»Example 1: A date.h file created by dateh
«MDNM»
struct timeb
{
time_t time; /* Time, like that returned from time(). */
unsigned short millitm; /* fraction of a second, in milliseconds */
short timezone; /* The difference moving westward, in */
/* minutes, between Greenwich Mean Time */
/* and the local time. */
short dstflag; /* Nonzero if daylight savings time is */
/* in effect. */
};
«MDUL»Example 2: The «MDNM»timeb «MDUL»structure
«MDNM»
struct tm
{
int tm_hour; /* hour */
int tm_min; /* minute */
int tm_sec; /* second */
int tm_isdst; /* daylight savings time is active */
int tm_year; /* year - 1900 */
int tm_mon; /* month; January == 0 */
int tm_mday; /* day of the month */
int tm_wday; /* day of the week; Sunday == 0 */
int tm_yday; /* number of elapsed days since */
/* January 1, January 1 == 0 */
}
«MDUL»Example 3: A «MDNM»tm «MDUL»structure
«MDNM»